package com.itheima.practice;

import java.util.ResourceBundle;

public class 使用ResourceBoundle读取配置文件 {
    public static void main(String[] args) {
        //ResourceBundle用来专门读取properties文件的，要求文件名必须是properties
        ResourceBundle bundle = ResourceBundle.getBundle("person");

        System.out.println(bundle.getString("name"));
        System.out.println(bundle.getString("age"));
    }
}
